package helper

import (
	"fmt"
	"server/game/model"

	"github.com/hwcer/yyds/options"
)

func SocialUpdateFromRole(role *model.Role, t int64, last int64) map[string]any {
	args := map[string]any{}
	args["lv"] = role.Lv
	args["uid"] = role.Uid
	args["sid"] = options.Game.Sid
	args["guid"] = role.Guid
	args["name"] = role.Name
	//args["prof"] = role.Prof
	args["icon"] = fmt.Sprintf("%d", role.Icon)
	return args
}
